<div class="container">
	<div class = "row">
		<div class = "col-md-6 col-md-offset-3">
			<div ng-if="proposal.is_creator || proposal.is_admin">
				<div class="row">
					<legend>Izmena: {{proposal.name}} </legend>
					<a class="btn btn-primary" href="#/proposal/{{proposal.id}}">
						<span class="glyphicon glyphicon-chevron-left"></span> 
						Nazad
					</a>
					<button class="btn btn-success pull-right" ng-click="modifyProposal()">
						Izmeni predlog
						<span class="glyphicon glyphicon-ok"></span> 
					</button>

				</div>
				<br>
				<div class="form-gorup"> 
					<label>Predložio:</label>

					<input class="form-control" type="text" ng-model="name_surname" disabled/>
				</div>
				<div class="form-group">
					<label>Ime predloga:</label>
					<input type="text" class="form-control" ng-model="proposal.name" required/>
				</div>
				<div class="form-group">
					<label>Opis predloga:</label>
					<textarea name="acDesc" class="form-control" id="acDesc" cols="30" rows="10" ng-model="proposal.description" required></textarea>
				</div>

				{{dataR.etagreturn}}
			</div>
		</div>
	</div>
</div>




<!-- TODO only admins and creator of proposal-->
<!--
<div ng-if="proposal.is_creator">
<a href="#/proposal/{{proposal.id}}">Nazad</a>
<br/>
Predložio:
<br/>
<input type="text" ng-model="proposal.user_proposed" required/>
<br/>
Ime predloga:
<br/>
<input type="text" ng-model="proposal.name" required/>
<br/>
Opis predloga:
<br/>
<textarea name="acDesc" id="acDesc" cols="30" rows="10" ng-model="proposal.description" required></textarea>
<br/>
<button ng-click="modifyProposal()">Izmeni predlog!</button>
{{dataR.etagreturn}}
</div>
-->

<!--

<div class = "row">

	<div class = "col-md-6"></div>

</div>


<form ng-if="proposal.is_creator">

</form>


-->

<!-- TODO only admins and creator of proposal-->
<!--
<div ng-if="proposal.is_creator || proposal.is_admin">
<a href="#/proposal/{{proposal.id}}">Nazad</a>
<br/>
Predložio:
<br/>
<input type="text" ng-model="proposal.user_proposed.id" required/>
<br/>
Ime predloga:
<br/>
<input type="text" ng-model="proposal.name" required/>
<br/>
Opis predloga:
<br/>
<textarea name="acDesc" id="acDesc" cols="30" rows="10" ng-model="proposal.description" required></textarea>
<br/>
<button ng-click="modifyProposal()">Izmeni predlog!</button>
{{dataR.etagreturn}}
</div>
-->
